<template>
  <view class="">
    <u-navbar v-if="showBar" back-text="返回" title=""></u-navbar>
    <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        url: '',
        showBar: false,
        webviewStyles: {
          progress: {
            color: '#FF3333'
          }
        }
      }
    },
    onLoad(e) {
      this.url = e.url
      this.showBar = e.showBar
    }
  }
</script>

<style>
</style>
